<?php  
require_once('nav.php');
header("Content-type:text/html;charset=utf-8");
require_once('inc_admin.php');
connect();
$sql="select * from videotype"; 
$row = fetch_array($sql);
 ?>


<div class="col-sm-9 col-md-10">
	<form action="videoAdd.php" class="form-horizontal" method="post" enctype="multipart/form-data">

	  <div class="form-group">
       <label for="videoname" class="col-md-2 col-xs-3 control-label">视频名称：</label>
       <div class="col-md-10 col-xs-9">
       <input name="videoname" type="text" class="form-control" id="videoname" placeholder="视频名称" required>
       </div>
    </div>

    <div class="form-group">
    <label for="tid" class="col-md-2 col-xs-3 control-label">视频类型</label>
    <div class="col-md-10  col-xs-9">
    <select name="tid" class="form-control">
                <option value="0">请选择</option>
                <?php foreach($row as $one){
                  echo '<option value="'.$one['tid'].'">'.$one['typename'].'</option>';
                  }  ?>
                <!-- <option value="1">沙发</option> 
                <option value="2">衣柜</option>
                <option value="3">餐桌</option>  
                <option value="4">椅子</option> -->
              </select>
    </div>
    </div>

     <div class="form-group">
   <label class="col-md-2 col-xs-3 control-label" for="pic">视频海报</label>
   <div class="col-md-10 col-md-9">
     <input name="pic" type="file" >
   </div>
   </div>


   
   <div class="form-group">
   <label class="col-md-2 col-xs-3 control-label" for="intro" >视频简介</label>
     <div class="col-md-10 col-md-9">
      <textarea type="text" class="form-control"  id="intro" name="intro"></textarea> 
     </div>
   </div>

     <div class="form-group">
    <label class="col-md-2 col-xs-3 control-label"  for="uploadadmin">上传用户</label>
    <div class="col-md-10 col-xs-9">
      <input type="text" class="form-control"  name="uploadadmin" id="uploadadmin"
      placeholder="上传用户">
    </div>
   </div>

   <div class="form-group">
    <label class="col-md-2 col-xs-3 control-label"  for="hittimes">点击率</label>
    <div class="col-md-10 col-xs-9">
      <input type="text" class="form-control"  name="hittimes" id="hittimes"
      placeholder="点击率">
    </div>
   </div>

   <div class="form-group">
    <label class="col-md-2 col-xs-3 control-label"  for="downtimes">下载量</label>
    <div class="col-md-10 col-xs-9">
      <input type="text" class="form-control"  name="downtimes" id="downtimes"
      placeholder="下载量">
    </div>
   </div>

    <div class="form-group">
    <label class="col-md-2 col-xs-3 control-label"  for="address">下载地址</label>
    <div class="col-md-10 col-xs-9">
      <input type="text" class="form-control"  name="address" id="address"
      placeholder="下载地址">
    </div>
   </div>

   <div class="form-group">
   <label class="col-xs-3"></label>
   <div class="col-md-10 col-md-offset-2" ><!--offset向右偏移两个格-->
     <input type="submit" value="添加">
     <input type="reset" value="重置">
   </div>
   </div>


    </form>


</div>


<?php 
require_once('footer.php');

 ?>